Fix cetus time conversion. Use mkgmtime() instead of mktime().
authoroliskoli <oliskoli>
Sun, 3 Sep 2006 18:41:19 +0000 (18:41 +0000)
committeroliskoli <oliskoli>
Sun, 3 Sep 2006 18:41:19 +0000 (18:41 +0000)
cetus.c

diff --git a/cetus.c b/cetus.c
index 28042607c9f8f5e5003d797b70bb83c033ab8a93..406824e02cfa6b85a7d1f2913d16e83006786923 100644 (file)
--- a/cetus.c
+++ b/cetus.c
@@ -249,7 +249,7 @@ read_tracks(const struct pdb *pdb)
                        tm.tm_mday = head->day;
                        tm.tm_mon = head->month - 1;
                        tm.tm_year = head->year + 100;
-                       basetime = mktime(&tm);
+                       basetime = mkgmtime(&tm);
                        break;
                        
                    case 1:     /* first part of description */
@@ -345,7 +345,7 @@ read_waypts(const struct pdb *pdb)
                        tm.tm_mon = rec->mon - 1;
                        tm.tm_year = be_read16(&rec->year) - 1900;
 
-                       wpt_tmp->creation_time = mktime(&tm); 
+                       wpt_tmp->creation_time = mkgmtime(&tm); 
                        
                }